@extends('layout.master')

@section('title','添加健康资讯视频')

@section('css')
    @parent
    <link href="{{ asset('plugins/bower_components/summernote/dist/summernote.css') }}" rel="stylesheet"/>
    <!-- animation CSS -->
    <link href="{{ asset('css/animate.css') }}" rel="stylesheet">
    <link href="{{ asset('plugins/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
    <link href="{{ asset('plugins/bower_components/bootstrap-switch/bootstrap-switch.min.css') }}" rel="stylesheet">
@endsection
@section('main')
    @if (session('message'))
        <div>
            <input type="hidden" id="hidden" name="hidden" value="hidden">
            <input type="hidden" id="message" name="message" value="{{ session('message') }}">
            <input type="hidden" id="status" name="status" value="{{ session('status') }}">
        </div>
    @endif
    <div class="white-box">
        <form class="form-horizontal form-material" method="post" enctype="multipart/form-data">
            <div class="row">
                <div class="col-md-6 col-sm-4">
                    <div class="form-group">
                        <label class="col-md-12">标题</label>
                        <div class="col-md-12">
                            <input type="text" name="title" id="title"
                                   class="form-control form-control-line" required>
                        </div>
                    </div>
                </div>

                <div class="col-md-4 col-sm-4">
                    <label class="col-md-12">视频</label>
                    <div class="col-md-12">
                        <div class="form-group ">
                            <input type="file" id="video" class="dropify" name="video"
                                   data-height="200px"/>
                        </div>
                    </div>
                </div>
            </div>

        <div class="form-group">
            <button class="fcbtn btn btn-success btn-outline btn-1e waves-effect" id="publish">添加
            </button>
            {!! csrf_field() !!}
            <a class="fcbtn btn btn-info btn-outline btn-1e waves-effect" href="{{ url('/healthAdvice/videoList') }}">返回
            </a>
        </div>
        </form>
    </div>

@endsection